<footer class="copyright shadow-sm rounded mt-3">
    <div class="container text-center">
        <p>{dede:global.cfg_powerby/} Powered by <a href="https://www.dedebiz.com" target="_blank">DedeBIZ开发团队</a></p>
        <p class="mb-0">友情连接：{dede:flink row='20'/}</p>
    </div>
</footer>
<div class="scroll-top">
    <button onclick="gotop()" id="btnScrollTop" title="返回顶部"><i class="fa fa-chevron-up"></i> </button>
</div>
<script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.min.js"></script>
<script src="{dede:global.cfg_cmsurl/}/static/web/js/style.js"></script>
{dede:statistics/}
<script>
    //校验是否登录
    function CheckLogin() {
        $.get("{dede:global.cfg_cmsurl/}/user/api.php?format=json",function(result) {
            if (result.code === 200) {
                $("#_login").html(`<a href="{dede:global.cfg_cmsurl/}/user" class="mr-3"><img src="${result.data.facepic}" alt="${result.data.username}" title="${result.data.username}" class="user-admin-img-xs">${result.data.username}</a><a href="/user/pm.php" class="btn btn-primary btn-sm rounded-circle"><i class="fa fa-bell"></i></a><a href="{dede:global.cfg_cmsurl/}/user/index_do.php?fmdo=login&dopost=exit" class="btn btn-success btn-sm rounded-circle"><i class="fa fa-sign-out"></i></a>`);
                $("#iptUsername").val(result.data.username);
                $("#iptUsername").attr("disabled", "disabled");
                $(".areaValidate").hide();
            } else {
                $(".areaValidate").show();
            }
        });
    }
    //页面加载触发
    $(document).ready(function () {
        CheckLogin();
    });
</script>